﻿<Window x:Class="AllWihExstras.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <TabControl>
            <TabItem Header="GridExcersise">
                <Grid>
                    <Grid.Resources>
                        <Style TargetType="TextBox">
                            <Setter Property="BorderBrush" Value="Red"/>
                            <Setter Property="BorderThickness" Value="3"/>
                            <Setter Property="TextAlignment" Value="Center"/>
                            <Setter Property="Margin" Value="4"/>
                            <Setter Property="Padding" Value="16"/>
                            <Setter Property="Height" Value="60"/>
                        </Style>
                    </Grid.Resources>
                    <Grid.RowDefinitions>
                        <RowDefinition></RowDefinition>
                        <RowDefinition></RowDefinition>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition></ColumnDefinition>
                        <ColumnDefinition></ColumnDefinition>
                        <ColumnDefinition></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBox>Some Text</TextBox>
                    <TextBox Grid.Column="1">Some Text</TextBox>
                    <TextBox Grid.Column="2">Some Text</TextBox>
                    <TextBox Grid.Row="1">Some Text</TextBox>
                    <TextBox Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2">Some Longer Text</TextBox>
                </Grid>
            </TabItem>
            <TabItem Header="PanelsExcersise">
                <Grid>
                    <Grid.Resources>
                        <Style TargetType="TextBox">
                            <Setter Property="BorderBrush" Value="Red"/>
                            <Setter Property="BorderThickness" Value="3"/>
                            <Setter Property="TextAlignment" Value="Center"/>
                            <Setter Property="Margin" Value="4"/>
                            <Setter Property="Padding" Value="16"/>
                        </Style>
                    </Grid.Resources>
                    <StackPanel Orientation="Horizontal" Margin="7">
                        <TextBox>Some Text</TextBox>
                        <TextBox>Some Text</TextBox>
                        <TextBox>Some Text</TextBox>
                        <Border BorderBrush="Red" BorderThickness="3" Margin="4">
                            <StackPanel>
                                <TextBox>Some Text</TextBox>
                                <TextBox>Some Text</TextBox>
                                <TextBox>Some Text</TextBox>
                            </StackPanel>
                        </Border>
                        <Border BorderBrush="Red" BorderThickness="3" Margin="4">
                            <DockPanel LastChildFill="True" Margin="7">
                                <TextBox DockPanel.Dock="Top">Some Text</TextBox>
                                <TextBox DockPanel.Dock="Left">Some Text</TextBox>
                                <TextBox DockPanel.Dock="Bottom">Some Text</TextBox>
                                <TextBox DockPanel.Dock="Right">Some Text</TextBox>
                                <TextBox>Some Text</TextBox>
                            </DockPanel>
                        </Border>
                    </StackPanel>
                </Grid>
            </TabItem>
            <TabItem Header="WithButtons">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition></RowDefinition>
                        <RowDefinition></RowDefinition>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition></ColumnDefinition>
                        <ColumnDefinition></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <Border BorderBrush="Red" BorderThickness="3" Margin="5">
                        <WrapPanel>
                            <Button>Button</Button>
                            <Button>Button</Button>
                            <Button>Button</Button>
                            <Button>Button</Button>
                            <Button>Button</Button>
                            <Button>Button</Button>
                            <Button>Button</Button>
                            <Button>Button</Button>
                            <Button>Button</Button>
                            <Button>Button</Button>
                            <Button>Button</Button>
                            <Button>Button</Button>
                        </WrapPanel>
                    </Border>
                    <Border BorderBrush="Red" BorderThickness="3" Grid.Column="1" Margin="5">
                        <Canvas>
                            <Button Canvas.Top="5" Canvas.Left="3">I am a Button</Button>
                            <Button Canvas.Top="20" Canvas.Left="20">I am a Button</Button>
                        </Canvas>
                    </Border>
                    <Border BorderBrush="Red" BorderThickness="3" Grid.Row="1" Margin="5">
                        <Canvas>
                            <Button Canvas.Top="30" Canvas.Left="30">I am a Button</Button>
                        </Canvas>
                    </Border>
                </Grid>
            </TabItem>
        </TabControl>
    </Grid>
</Window>
